#include <stdio.h>
#include "stack.h"
#include <corecrt_malloc.h>

typedef struct Stack
{
	ElemType data;
	struct Stack* next;
}Stack, * LinkList;

status InitStack(LinkList& s)
{
	s = NULL;
	return 1;
}

status InStack(LinkList& s, ElemType e)
{
	LinkList p;
	p = (LinkList)malloc(sizeof(Stack));
	p->data = e;
	p->next = s;
	return p->data;
}


int main()
{
	LinkList s;
	InitStack(s);
	InStack(s, 2);
	printf("%d", InStack(s, 3));
}